﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

/**
 * 创建时间：2014/11/28 13:12:43
 * 作者：yong.blackcore
 * Email：itblackhole@outlook.com
 * QQ：50404503
 */
namespace ComicIsland.Common.Entities.InterfaceJson
{
    [DataContract]
    public class CodeMsg
    {
    }

    [DataContract]
    public class JsonSearchAuthorItem
    {

        [DataMember(Name = "progresstype")]
        public int Progresstype { get; set; }

        [DataMember(Name = "id")]
        public int Id { get; set; }

        [DataMember(Name = "coverurl")]
        public string Coverurl { get; set; }

        [DataMember(Name = "isbook")]
        public string Isbook { get; set; }

        [DataMember(Name = "subject_name")]
        public string SubjectName { get; set; }

        [DataMember(Name = "updatedate")]
        public string Updatedate { get; set; }

        [DataMember(Name = "bigbookview")]
        public int Bigbookview { get; set; }

        [DataMember(Name = "key_name")]
        public string KeyName { get; set; }

        [DataMember(Name = "gradescore")]
        public double Gradescore { get; set; }

        [DataMember(Name = "name")]
        public string Name { get; set; }

        [DataMember(Name = "author")]
        public string Author { get; set; }
    }

    [DataContract]
    public class JsonSearchAuthorData
    {

        [DataMember(Name = "items")]
        public ObservableCollection<JsonSearchAuthorItem> Items { get; set; }

        [DataMember(Name = "totalcount")]
        public int Totalcount { get; set; }
    }

    [DataContract]
    public class JsonSearchAuthorInfo
    {

        [DataMember(Name = "data")]
        public JsonSearchAuthorData Data { get; set; }
    }

    [DataContract]
    public class JsonSearchAuthor
    {

        [DataMember(Name = "code_msg")]
        public CodeMsg CodeMsg { get; set; }

        [DataMember(Name = "code")]
        public int Code { get; set; }

        [DataMember(Name = "info")]
        public JsonSearchAuthorInfo Info { get; set; }
    }
}
